﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class Constant
    {
        public static string ResourceParentCodeMenuRoot
        {
            get
            {
                return ConfigurationManager.AppSettings["ResourceParentCodeMenuRoot"];
            }
        }
        public static readonly string CacheAreaControlActionRoleCodes = "Cache_{0}_{1}_{2}_RoleCodes";

        public static readonly string CacheMenu = "Cache_Menu_{0}";

        public static readonly string AdministratorRoleCode = "admin";

        public const int CacheTimeout = 3 * 60;

        public static readonly string RourseMenuType = "menu";

        public static readonly string DictionaryRourseType = "rourse";

        public static readonly string DictionaryContactType = "contactType";

        public static readonly string DictionaryPortfolioType = "PortfolioType";

        public static readonly string HomePage = "HomePage_{0}";

        public static readonly int CurrentAppId = 1;

        public const string OperateFail = "操作失败";

        public const string OperateSuccess = "操作失败";
    }
}
